home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Windows / WindowUpdater.h < prev    next >
Text File  |  1997-06-28  |  315b  |  25 lines

  1. // WindowUpdater.h
  2.  
  3. #ifndef WindowUpdater_h
  4. #define WindowUpdater_h
  5.  
  6. class WindowUpdater
  7.   {
  8.     private:
  9.         const WindowPtr window;
  10.         
  11.     public:
  12.         WindowUpdater( WindowPtr theWindow )
  13.           : window( theWindow )
  14.           {
  15.             BeginUpdate( window );
  16.           }
  17.         
  18.         ~WindowUpdater()
  19.           {
  20.             EndUpdate( window );
  21.           }
  22.   };
  23.  
  24. #endif
  25.